<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="layout.tld" prefix="e"%>
<e:override name="title">${OnlineUser.username}的留言板</e:override>
<e:override name="my_setting">

	<div class="row">
		<div class="col-md-1"></div>
		<div class="col-md-7">

			<form role="form" method="post"
				action="<c:url value="/user/upload"/>"
				enctype="multipart/form-data">

				<div class="form-group">
					<label>当前头像</label>
					<p>
						<img alt="${OnlineUser.username}"
							src="${OnlineUser.userlogo}"
							width="120" />
					</p>
				</div>

				<div class="form-group">
					<label>选择本地头像</label>
					<p>
						<input type="file" name="file" />
					</p>
				</div>

				<input class="btn btn-success btn-lg" type="submit" value="上传头像" />
				<a class="btn btn-default btn-lg"
					href="###">使用Flash上传并裁切头像</a>
			</form>

		</div>
		<div class="col-md-4"></div>
	</div>
</e:override>

<%@include file="/setting.jsp"%>

